package com.junxonline.plat.dao;

import com.junxonline.plat.model.SystemUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @ClassName: UserRepository
 * @Description: 用户数据操作类
 * @author JunX
 */

@Repository
public interface SystemUserDAO extends JpaRepository<SystemUser, Long> {

    SystemUser findByUsername(String username);

    SystemUser findByUsernameAndPassword(String username, String password);

}
